<%--
  Created by IntelliJ IDEA.
  User: xianfei
  Date: 15-3-16
  Time: 上午10:57
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
<html>
<head>
    <title>会员管理</title>
    <script type="text/javascript" src="/static/laydate/laydate.js"></script>
    <script>
        $(function () {
            laydate({
                elem: '#birthday',
                format: 'YYYY-MM-DD',
                issure: false,
                min: '1900-01-01 00:00:00',
                max: '2099-12-31 23:59:59'
            });
            laydate({
                elem: '#initiateDate',
                format: 'YYYY-MM-DD',
                issure: false,
                min: '1900-01-01 00:00:00',
                max: '2099-12-31 23:59:59'
            });
            $("#back").click(function () {
                window.location.href = "/member/list";
            });
        })


    </script>
</head>
<body>
<form:form commandName="memberDTO" action="/member/save">
    <form:hidden path="id"/>
    <form:hidden path="guid"/>
    <table class="table table-striped">
        <tr>
            <td style="width:100px;">姓名:</td>
            <td><form:input path="name"/><form:errors path="name" cssClass="t16"/></td>
            <td style="width:100px;">性别:</td>
            <td><form:radiobutton path="gender" value="男"/>男&nbsp;<form:radiobutton path="gender" value="女"/>女</td>
        </tr>
        <tr>
            <td>身份证号码:</td>
            <td><form:input path="idCard"/><form:errors path="idCard" cssClass="t16"/></td>
            <td>手机号码:</td>
            <td><form:input path="phoneNum"/><form:errors path="phoneNum" cssClass="t16"/>
            固定电话:
            <form:input path="telephone"/><form:errors path="telephone" cssClass="t16"/></td>
        </tr>
        <tr>
            <td>出生日期:</td>
            <td><form:input path="birthday" id="birthday" readonly="true"/></td>
            <td>年龄:</td>
            <td><form:input path="age"/></td>
        </tr>
        <tr>
            <td>身份证地址:</td>
            <td><form:input path="idCardAddress"/></td>
            <td>常驻城市:</td>
            <td><form:input path="residentCity"/></td>
        </tr>
        <tr>
            <td>入会日期:</td>
            <td><form:input path="initiateDate" id="initiateDate" readonly="true"/></td>
            <td>入会金额:</td>
            <td><form:input path="initiateMoney"/></td>
        </tr>
        <tr>
            <td>账务明细:</td>
            <td><form:input path="accountDetail"/></td>
            <td>喜好习惯:</td>
            <td><form:input path="hobby"/></td>
        </tr>
        <tr>
            <td>客服:</td>
            <td><form:input path="customService"/></td>
            <td>录入人:</td>
            <td><form:input path="entryPerson"/></td>
        </tr>
    </table>
    <div>
        <input type="submit" class="btn btn-primary" value="保存">
        <input type="button" class="btn btn-info" id="back" value="返回">
    </div>

</form:form>
</body>
</html>